Remove output from sample hole programs.

Having the holes do output rather than just returning the value led to
unnecessary complication in the judge function.
Consolidate duplicate judge logic for validating result against sample.