This is just a calming masterpiece.
It is too complicated to explain so just go ahead and look at the coding. Thanks Notherblanky!