moved print_cells() to UI