public static int getColorOfPiece(Board b, Position p) {
		if (b.board[p.rank][p.file] < 0) {
			return Board.black;
		} else if (b.board[p.rank][p.file] > 0) {
			return Board.white;
		}
		return 0;
	}