Add function all_cells_visited

The purpose of this function is to check if all the cells are visited, so it can stop if there nothing more to visited. Later will be add a function which finds the first unvisited cell