fixed deadlock in game