implemented the rock-paper-scissors game