Further updates to the game loop