defining a player and the AI