So far the code is only using previous scores. It takes the historical results and calculates the average scores for the competition, then looks at at each teams scores and calculates an estimated attack and defence strength. Have a read through the code, It's pretty straight forward and well commented. If there's anything there you don't get, let me know and I'll try and expand on what's happening.
I'll likely be adding some machine learning elements to the code soon too.
Thanks for your interest.