Refactored. Experimenting with heading. Added a FPS counter.