Avoid the moving obstacle for as long as you can. Touching it ends the round.
Time survived: 0.0s
Now collisions have consequences: hitting the obstacle ends the round.
Open the code and try the variant ideas listed in comments near the bottom.