Added PlayerAI class and moved AI functions to it

Player and PlayerAI use base class PlayerBase