added AI and Player classes