Worked on the graphics manager.

debugged and fixed