Chess program in Ruby