Ruby's Tom Kerrigan's Simple Chess Program (TSCP) implementation