Add final refactored code for the second attempt at a tic tac toe game