refactored chess_pieces.rb