function counter works ttt can properly call a cats game