added minimax, need to add state tracking