We played this game in school on a squared paper. The goal is to place five crosses in a row in any direction and prevent the opponent from doing same before. There will have to play with the computer, but it thinks almost the same as human. At least, I have tried to write a computer brain that way.