private void rookMove(KrakenState state,ArrayList<KrakenMove> list,XYLocation location) {
		XYLocation kingLocation = state.getKingLocation(color.equals(KrakenColor.WHITE_ITEM)?  "b":"w" );
		int row,column = location.getYCoOrdinate();
		
		//uprigth moves
		for (row = location.getXCoOrdinate()-1;row>-1;row--)
			if (addPosition(state,kingLocation,location,list,new XYLocation(row,column)))
				break;
		for (row = location.getXCoOrdinate()+1;row<state.getRowBoard();row++)
			if (addPosition(state,kingLocation,location,list,new XYLocation(row,column)))
				break;

		// horizontal moves
		row=location.getXCoOrdinate();
		for (column = location.getYCoOrdinate()-1;column>-1;column--)
			if (addPosition(state,kingLocation,location,list,new XYLocation(row,column)))
				break;
		for (column =location.getYCoOrdinate()+1;column<state.getColBoard();column++)
			if (addPosition(state,kingLocation,location,list,new XYLocation(row,column)))
				break;
			
	}