a simple chess game in ruby