Fixed up code, fixed up the 'runs' system, added resetMap() (which needs
testing) and so on so forth.