Making bfs more efficent, getting rid of one array list and reverting vis code