I put some comments in so you can (probably) understand the code. I got rid of the pen, and changed a couple of things to make it as simple as possible.
cooler version :] https://scratch.mit.edu/projects/1282009522/