Fix to the array overrun check in get_cell that was preventing drawing