squareName method
Returns a human-readable name for a square on a board of this size. e.g. c1, h6.
Implementation
String squareName(int square) {
int rank = v - (square ~/ h);
int file = square % h;
String fileName = String.fromCharCode(ASCII_a + file);
return '$fileName$rank';
}