My attempt at tic-tac-toe after looking at solution.