Improved method isNextToBlock