The game works once

After this the server has a conflict with alarm.
It is better to handle the time with a proper timer if the server wishes to stay alive.