Added selectedCell, Added terrainScale