fixed a bug with skipping a turn and with winning the game