diff --git a/main.cpp b/main.cpp index 16aac5e..5d1589a 100644 --- a/main.cpp +++ b/main.cpp @@ -388,7 +388,7 @@ void solveVertical( // need to check for x-1, x+1, y-1, y+1 // check for any box below current move - if (moveX < x - 3 && board[moveX + 2][moveY] != ' ' && board[moveX + 1][moveY - 1] != ' ') { + if (moveX < x - 2 && board[moveX + 2][moveY] != ' ' && board[moveX + 1][moveY - 1] != ' ') { int rightEdge = moveY == y - 1 ? 1 : board[moveX + 1][moveY + 1] != ' '; if (rightEdge) { addPoint(points, board, moveX + 1, moveY, player);