Adding more game engine logic.

Closes #4