Rather than make decisions to play the perfect game (respond to player taking center square, taking center square if free) I decided to make the computer's first move random. That means it's possible to win. After the first move, the computer will try to win, block and connect it's tiles.