tic tac toe n swap int in place