Fixed bug that made winning the game impossible