fixed bug in tic-tac-toe