This is beautiful. By the end of it I started to feel like I was calculating complicated chess lines in a middle game.