title: Rock, Paper, Scissors Game not keeping score correctly
body: <p>I'm having an issue with my rock, paper, scissors game. When I play the game it records a win or a loss as both win and a loss. I'm trying to make it so that it records a win and a loss and does not add a point to win and loss. Any suggestions?</p>
  
  <pre><code>import java.io.*;
  
  public class RPS {
      static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      static int x;
  
      public static void main(String[] args) throws IOException {
  
          int choice;
          do {
              System.out.println("Game Menu");
              System.out.println("---------------------------------------------");
              System.out.println("1. Start Game");
              System.out.println("2. Quit Program");
  
              choice = Integer.valueOf(in.readLine()).intValue();
  
              if(choice == 1) {
                  System.out.println("Welcome to Rock, Paper, Scissors");
                  System.out.println("---------------------------------------------");
                  System.out.println("Please enter Rock, Paper or Scissors to play");
  
              int wins = 0, loss = 0, ties = 0;
              String user = in.readLine();
              String comp="";
              int compc=(int)(3*Math.random())+1;
  
              if (compc==1) {
                  comp="Rock";
              }
              else if (compc==2) {
                  comp="Paper";
              }
              else if (compc==3) {
                  comp="Scissors";
              }
  
              if (user.equals("Rock") || user.equals("rock")) {
                  System.out.println("You chose : Rock");
                  user = "Rock";
              }
              else if (user.equals("Paper") || user.equals("paper")) {
                  System.out.println("You chose : Paper");
                  user = "Paper";
              }
              else if (user.equals("Scissors")|| user.equals("scissors")) {
                  System.out.println("You chose : Scissors");
                  user = "Scissors";
              }
              else {
                  System.out.println("Error: Please type Rock, Paper or Scissors");
              }
              System.out.println("Computer: I chose " + comp);
              if(user.equals(comp)) {
                  System.out.println("It's a tie!");
                  ties++;
              }
              else if (user.equals("Rock")) {
  
                  if (comp.equals("Scissors"))
                      System.out.println("Rock beats scissors, congrats you win!");
                  wins++;
  
                   if (comp.equals("Paper"))
                       System.out.println("Paper beats rock, sorry you lost!");
                  loss++;
  
  
              }
              else if (user.equals("Paper")) {
  
                  if (comp.equals("Rock"))
                      System.out.println("Paper beats rock, congrats you win!");
                      wins++;
  
                   if (comp.equals("Scissors"))
                      System.out.println("Scissors beats paper, sorry you lost!");
                      loss++;         
              }
              else if (user.equals("Scissors")) {
  
                  if (comp.equals("Paper"))
                      System.out.println("Scissors beats paper, congrats you win!");
                      wins++;
                   if (comp.equals("Rock"))
                      System.out.println("Rock beats scissors, sorry you lost!");
                      loss++;     
              }
              System.out.println("Total wins : " +wins);
              System.out.println("Total losses : " +loss);
              System.out.println("Total ties : " +ties);
              }
              if (choice == 2) {
                  System.out.println("Good-bye!");
                  in.close();
              }
          } while (choice !=2); 
      }
  }
  </code></pre>