Yes, this is the way to start real game program:
These 2 things seem imperative
#1 seek a win in next move, if that fails
#2 seek to spoil opponents win in next move
then you start playing for best positions or seeing moves ahead with recursive use of #1 and #2!
I don't think that! is in the sample Chess program that comes with QB64.