Neighbours checking masks calculated