A simple tic-tac-toe game without GUI