Formatting.
Eliminate a bunch of warnings.
Move some game variables to the top.
Simplify code.