a java program that solves levels in the android game waterlogic