added time device and code for animation in diving room