changed searchdepth depending on how many pieces are on the board.