change update condition to allow game to terminate