tic-tac-toe with objects