ticTacToe written in Swift