Ruby chess implementation