Refactored animation loop to use better animation timing and added FPS display