deadlock with end game debug