Simple basic tic-tac-toe for Algorithms Year 2