fix bfs diagonal neighbours count from side neighbours