chess.rb on w2d2 and w2d3