made it so if win in dev mode, restart in dev mode