Storing the rotated positions to variables done. NEED CODE CLEANUP.