I was mistaken in the last commit. The game loop wasn't quite right. Fixed a
couple of bugs related to the game loop and got things working correctly.