He wasn't hacking. Hal worked for Aph, and Aph contracted with Mattel to deliver console game cartridges.
There was once a contest between Caltech and MIT. Each was to write a program to play Gomoku, and they'd play against each other. Hal wrote a Gomoku-playing program in a weekend, and it trashed MIT's program.