Find Path In 2d Array Java