diff --git a/lib/game.js b/lib/game.js index 24c1e3d..7c54bc4 100644 --- a/lib/game.js +++ b/lib/game.js @@ -198,7 +198,7 @@ const game = (getBallLevel, sleepFunction, gameBoard) => { map[d.x >= 6 ? 6 : d.x + 1][d.y], map[d.x <= 0 ? 0 : d.x - 1][d.y], map[d.x][d.y >= 6 ? 6 : d.y + 1], - map[d.x][d.y <= -1 ? -1 : d.y - 1] + map[d.x][d.y <= -2 ? -2 : d.y - 1] ] .filter(n => n && n.type === d.type && n.key !== d .key) .reduce((l, d) => l.concat(checkTile(d)), [d])