Modified to detect contacts among icicles, player, and treasure.