Layers almost ok, now 3 layer testing, bug on boundaries after layer
changes