Frequently if a variable is getting changed "for no reason" that is caused by writing to an array with the index out of range. Pepper in some print statements everywhere you store into the bet and player arrays (I don't see you storing into the score array) and see if the index is ever out of range.
2 Likes