def rotate_piece(piece, orientation): new_piece = Piece() new_piece._list = list(piece._list) new_piece.rotate(orientation) return new_piece