improving code to make rotations right

following code to see object creation behavior.
There is aproblem:
everytime it draws and unDraws.. its creating too many objects... and at
some point the program closes