removed bool pointer
finished refactoring lp_2_ai