Add code for home-field advantage as a variable