Fixed instantiation bug in game ai.