fixed bug in Entity.hascollision, update spritemanager