Added two additional functions in game and ai

Geoffrey