added functionality to RPS game and wrote tests for it