private void addPosition(KrakenState state, ArrayList<KrakenMove> list,
			XYLocation location, XYLocation kingLocation, XYLocation finalLocation) {
		
		if (state.checkRange(finalLocation)){
			if (state.distance(kingLocation, location, finalLocation)){
				if (state.isEmpty(finalLocation))
					list.add(new KrakenMove(location, finalLocation));
				else
					if (!state.getValue(finalLocation).getColor().equals(color))
						list.add(new KrakenMove(location, finalLocation));
			}else
				if (state.getValue(finalLocation) != null && !state.getValue(finalLocation).getColor().equals(color))
					list.add(new KrakenMove(location, finalLocation));
		}
	}