added timer

A timer is displayed, with the remaining time, but there still isn't
anything happening if the time reaches 0.