Returns true if a and b are on the same rank.
a
b
bool squaresOnSameRank(int a, int b) => rank(a) == rank(b);