Implements GameDef
Implements terrainFunction