Just watch the animation...........
Thanks to @95041579 for most of the code. I have just changed the colours.