A simple implementation of the game Tic-tac-toe and a min-max AI