private boolean withinBounds(String direction) {
		ArrayList<Integer> neighbours = new ArrayList<Integer>(getNeighbours(location, size));
		int check = 0;
		boolean ret = false;
		
		if(direction.equals("up")){
			check = location - size;
			if(neighbours.contains(check)){
				ret = true;
			}
		}
		
		if(direction.equals("down")){
			check = location + size;
			if(neighbours.contains(check)){
				ret = true;
			}
		}
		
		if(direction.equals("left")){
			check = location - 1;
			if(neighbours.contains(check)){
				ret = true;
			}
		}
		
		if(direction.equals("right")){
			check = location + 1;
			if(neighbours.contains(check)){
				ret = true;
			}
		}
		return ret;
	}