protected int num_adjacent(HantoCoordinate location) {
		int count = 0;
		
		if(gameboard.get(new BasicCoordinate(location.getX(), location.getY() + 1).getkey()) != null) {
			count++;
		}
		if(gameboard.get(new BasicCoordinate(location.getX() + 1, location.getY()).getkey()) != null) {
			count++;
		}
		if(gameboard.get(new BasicCoordinate(location.getX() + 1, location.getY() - 1).getkey()) != null) {
			count++;
		}
		if(gameboard.get(new BasicCoordinate(location.getX(), location.getY() - 1).getkey()) != null) {
			count++;
		}
		if(gameboard.get(new BasicCoordinate(location.getX() - 1, location.getY()).getkey()) != null) {
			count++;
		}
		if(gameboard.get(new BasicCoordinate(location.getX() - 1, location.getY() + 1).getkey()) != null) {
			count++;
		}
		
		return count;
	}