limit depth to 22 plies with evaluating king in check