testing main game loop