Builtin cleanup, part 1 (game).

This does several things:

- Breaks lines so each has an absolute maximum of 120 characters (tabs are taken as 4 spaces).
- Fixes some variables being leaked to the global environment (Green Peace would be proud).
- Moves some functions out of scope so they are not "closed" every time.
- Fixes some small(ish) bugs.
- Most importantly: gets rid of features deprecated long ago.