Add restriction not to place nodes outside of bounds