Piece class and tests implemented