added more game logic stuff