complete water puzzle program