A ruby solution to the knight's travails challenge.