Moved all game-specific code to useful.h.