Solving the Drainage Puzzle: Finding Plans for Efficient Water Flow