Added a Rotate method in the Piece class.