I wrote the player2RPS() function and tested it.