Fixed the game crashing when no possible moves were found for a piece in a goal position.