I know this is an existing issue and not caused by this but I was wondering if we could start using meaningful variable names?
If it's just a loop or a counter then yeah i w/e will do but what is p? Also makes it a lot easier to search later on. searching for "p" right now returns too many results.
I'm guessing w1-4 is word 1-4