when Canvas1.Touched (x, y, touchedSprite) set row = floor(x / (Canvas1.Width / 3)) set col = floor(y / (Canvas1.Height / 3)) call TicTacToe1.SetCell(row, col, Player1Symbol)