Make the `opponent' function private