Internal refactoring of code related to game opponents.