Refactored rock paper scissors code