it works (hopefully) up to alphabeta search