Solving water puzzles