public GridLocation adjacentSpot(GridLocation g, int dir)
	{
		int x = g.getX();
		int y = g.getY();
		
		switch(dir){

			case UP:		if(isValid(x, y - 1)) return gl[x][y - 1]; //above

			case DOWN:	if(isValid(x, y + 1)) return gl[x][y + 1]; //below

			case RIGHT: 	if(isValid(x + 1, y)) return gl[x + 1][y]; //right

			case LEFT:	if(isValid(x - 1, y)) return gl[x - 1][y]; //left
			
			default: 		return null;
		}
	}