I tried to make this a little more interesting with an animated gif. I also added game code using classes to see the difference. Feel free to look at the code for any improvements or questions:
https://www.dropbox.com/sh/s5xj5td5gu...
See the youtube tutorial by Christian Thompson!!