basic tic-tac-toe game flow. not tested yet.