Apply code to fix AI in muliplayer