public static ArrayList<Position> findPieces(Board b, int piece) {
		ArrayList<Position> pieces = new ArrayList<Position>();

		for (int rank = 0; rank < b.board.length; rank++) {
			for (int file = 0; file < b.board[rank].length; file++) {
				if (b.board[rank][file] == piece) {
					pieces.add(new Position(rank, file));
				}
			}
		}

		return pieces;
	}