Muncher function(myself, grid, bots, gameInfo) { const W = grid.length, H = grid[0].length; const rounds_left = gameInfo[1] - gameInfo[0]; const directions = [[0, -1], [1, 0], [0, 1], [-1, 0]]; function rank_square([x, y]) { if (grid[x][y] == myself[0]) return 3; ...