change game logic to make it proper and save time