updates to the game loop