The following function returns undefined instead of the ID of the element that is clicked on. Why is it doing this?
// get id of the target element that is clicked on
getId: function() {
    var cell = document.getElementById('board');
    cell.addEventListener('click', function(e) {
    return e.target.id;
    });
},
 
    