update checkTimeCondirions function in simulation