He was coding everything around: checking the validity of moves, auxiliary code, win conditions and on. Anything but the algorithm itself, likely for the lack of experience. Doing the thing here would have been figuring out the algorithm and sitting down to code it which probably felt intimidating. So yeah it was exactly the opposite.