Click the flag a bunch of times to make it work.
about 95.5% by me. One sprite I had to take from another project, but when you see it, you'll know that it's pretty small. And I modified the code for that part too.