Just catch the devil then you win.
I made it by drawing the devil and figuring out code to make it fun.