TicTacToe implementation in swift for iPhone