Fix the issue where textures would go out of scope and therefore make all sprites be white blocks and clean up some codestyle. We are now using the resourcemanager class!