implemented tica-tac-toe game