solved Problem 63, did not prune domains very much though so inefficient