adding in game loop stuff again