Added condition to switch control to ai in game