Fixed some bugs in the AI.  Also added two methods which get IDs for types of GameObjects