removed handleCollisions funct