Cleaned the code in game.lua.

And, you know, made it work at all.