Bfs 2d Array Java