Renamed variable TERM_SIZE to GRAPH_SIZE