added class Piece and rspec test