여전히 문제가 있었다.

image.png

아래 코드가 문제인 것이다. 이는 당연하다..

void MoveRight(int& curX, int& curY) {
	int nextX = curX + 1;
	int nextY = curY;
	if (CheckBoundary(nextY, nextX)) {
		curX++;
	}
}

1. 오른쪽 경계 유효성 문제 해결 후 코드

void MoveRightBlock1(int& curX, int& curY) {
	// 오른쪽 경계
	int nextRightX = curX + 1 + 1;
	int nextRightY = curY;

	if (CheckBoundary(nextRightY, nextRightX)) {
		curX++;
	}
}

void MoveRight(int& curX, int& curY) {
	
	// Block1 일 시
	MoveRightBlock1(curX, curY);
	
}