Initial changes to the game engine.

Does not entirely work yet, but wanted to push the current changes I've
made.