Adding game logic infrastructure.

How can I merge it with the rendering?? *gasp*