public ArrayList<Piece> collectUnit(int color){

		ArrayList<Piece> collection = new ArrayList<Piece>();

		for(Piece piece : board.units){
			if(piece.getColor() == color)
				collection.add(piece);

			Collections.sort(collection);
		}

		return collection;
	};