basic chess program in Ruby