code: function(collisionGrid, acceptableTiles, x, y, sourceNode) {
          var directionalCondition = directionalConditions[y] && directionalConditions[y][x];
          if (directionalCondition) {
              var direction = calculateDirection(sourceNode.x - x, sourceNode.y - y)
              var directionIncluded = function () {
                  for (var i = 0; i < directionalCondition.length; i++) {
                      if (directionalCondition[i] === direction) return true
                  }
                  return false
              }
              if (!directionIncluded()) return false
          }
          for (var i = 0; i < acceptableTiles.length; i++) {
              if (collisionGrid[y][x] === acceptableTiles[i]) {
                  return true;
              }
          }
  
          return false;
      }
docs: Helpers