Changed Spritemanager from a static class to an instance class.