added AI class to move the player given