Done rotation refactoring, fixed multiset duplicate issue and done z-indexing.
Prepare for the night of code :)