Only lookup cells once in update_cell
Use print_char instead of print