new code for ttt game