Implementation of the popular game Tic-tac-toe.