initial, unmodified version of tictactoe logic