refactored engine code into Graphics class

clean-up everywhere