minor fixes, refactored spriteManager and TDspriteGame a bit