Fixed selected cell movement beyond puzzle board.

Working on frozen game detection.