testing game loop