public Terrain getTerrainAt(int x, int y)
	{
		System.out.println("TERRAIN AT "+x+" "+y+" "+tmap[x][y]);
	
		if (tmap[x][y].ground) {
			return tmap[x][y];
		}
		for (int i=x-1; i<=x+1; ++i) {
			
			for (int j=y-1; j<=y+1; ++j) {
				//System.out.println("TERRAIN AT "+i+" "+j+" "+tmap[i][j]);
				try {
					if (tmap[i][j].ground) {
						return tmap[i][j];
					}
				} catch (Exception e) {}
			}
		}
		
		return Terrain.GRASS;
	}