Refactored fps counter to new module. Refactored graphics to tk graphics for less glutter in main.