Changed TrapClass::handleCollision() to TrapClass::onCollision() to correctly handle the updated collision callback.