Added crucial game logic