Adds code that initializes a PhysicsCollisionListener for collisions between the player and hazards.