Major change.

1. Finishing state map.
2. Add rotate.