rock-paper-scissors-lizard-spock implementation in js