Added some pseudo game-engine functionality.

We're super close to having a working game!