(() => {
    'use strict';

    var player = "O";
    var moves = [];
    var winningCombos = [
        ["1", "2", "3"],
        ["4", "5", "6"],
        ["7", "8", "9"],
        ["1", "5", "9"],
        ["3", "5", "7"],
        ["1", "4", "7"],
        ["2", "5", "8"],
        ["3", "6", "9"]];

    window.play = (sq) => {
        if (sq.innerHTML !== "O" && sq.innerHTML !== "X") {
            drawMark(sq);
            saveMove(sq);
            if (isWinner()) {
                colourWinner();
            };
            changePlayer();
        }
    };

    var drawMark = td => td.innerHTML = player;

    var saveMove = td => moves[td.id] = player;

    var isWinner = () => (winningCombos.filter(isWinningCombo).length > 0);

    var isWinningCombo = combo => (combo.filter(sq => moves[sq] === player).length === 3);

    var colourWinner = () => winningCombos.filter(isWinningCombo).map(colourCombo);

    var colourCombo = combo => combo.map(sq => document.getElementById(sq + "").style.backgroundColor = "green");

    var changePlayer = () => (player === "O") ? player = "X" : player = "O";

})();
(() => {
    'use strict';

    var player = "O";
    var moves = [];
    var winningCombos = [
        ["1", "2", "3"],
        ["4", "5", "6"],
        ["7", "8", "9"],
        ["1", "5", "9"],
        ["3", "5", "7"],
        ["1", "4", "7"],
        ["2", "5", "8"],
        ["3", "6", "9"]];

    window.play = (sq) => {
        if (sq.innerHTML !== "O" && sq.innerHTML !== "X") {
            drawMark(sq);
            saveMove(sq);
            if (isWinner()) {
                colourWinner();
            };
            changePlayer();
        }
    };

    var drawMark = td => td.innerHTML = player;

    var saveMove = td => moves[td.id] = player;

    var isWinner = () => (winningCombos.filter(isWinningCombo).length > 0);

    var isWinningCombo = combo => (combo.filter(sq => moves[sq] === player).length === 3);

    var colourWinner = () => winningCombos.filter(isWinningCombo).forEach(colourCombo);

    var colourCombo = combo => combo.forEach(sq => document.getElementById(sq + "").style.backgroundColor = "green");

    var changePlayer = () => (player === "O") ? player = "X" : player = "O";

})();
Change from map to forEach.
Change from map to forEach.
