Converging Maze Largest Sum Cycle In Java