automatically switches between x's and o's