A somewhat generic implementation of the Rock-Paper-Scissors game