starts implementing AI player logic