pulled the render loop out into the Engine class

I’m pretty happy with the basic structure of the code right now.
Pretty much all the annoying GL plumbing code is tucked away in the
background and everything in the main file defines the actual data and
its behavior.