Changed game loop