working AB prunning
just minimax
adds optional solving.