Small tic-tac-toe refactor