new version with better programming, added simple map, grid to specify terrain type, coord transform between screen pos and grid pos, different colours for stone, grass, water,