fixed bugs in the resource manager and removed the hardcoded textures