The game logic is now working properly