This program was written as a solution to APAC Test Practice Round "Moist" see comment in code for more details