removed unneeded code from handleCollision