add rotate and pattern limit
add rotate function to ratate piece
add rotatePiece function in Piece