Fixed BFS simulator.
Added extra params to make gif to have more customizability.