I tried to make a mole masher game but I keep getting the same runtime error
Perhaps you would like to share a screenshot of the error.
global hole
should be just hole
the local variable...
You may want to rename your global hole
variable to something like holeList
so it is more clear in the future that you picked the list reference and not the reference to the individual object.