fix layers and enhance vibe pattern

Just 3 layers required, so remove the 4th one.
Also, enhance the vibe pattern code so no if statements are required.