Adding condition about phases' change using time of phases' counters

Adding condition about the last phase (unmovement of the ball)