title: JS CLI RPS game issue
body: <p>Greetings to the caring people of Stack Overflow.
  I just recently started to learn JS and am now trying to make a CLI Rock Paper Scissors game. Yes, I know that I am the 100th person who has asked questions about it, but I could not find the 'no-make-sense' code through the code of other people. So just I ask for help from everyone who is not indifferent to helping a newbie!</p>
  <p>The situation is this: the most common rules of a familiar game, but I can't get the counter to work, plus sometimes the text I type in is not recognized (I think the reason for the input comparison function).
  Also, I'm sure that my func scopes are broken but where and why I can't figure out or trace it.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function computerPlay() {
    let anyPick = Math.random();
    if (anyPick &lt; 0.3) {
      return "Rock";
    }
    if (anyPick &gt; 0.3 &amp;&amp; anyPick &lt; 0.6) {
      return "Paper";
    }
    if (anyPick &gt; 0.6) {
      return "Scissors";
    }
  }
  
  let aiScore = 0;
  let playerScore = 0;
  function battleRound(playerSelection, computerSelection) {
    if (playerSelection === computerSelection) {
      return "None of you are win or lose, cuz it is an equal!";
    }
    if (playerSelection === "rock" &amp;&amp; computerSelection === "Scissors") {
      playerScore += 1;
      return "You Win! Rock beats Scissors";
    }
    if (playerSelection === "rock" &amp;&amp; computerSelection === "Paper") {
      aiScore += 1;
      return "You Loose! Paper beats Rock";
    }
    if (playerSelection === "paper" &amp;&amp; computerSelection === "Scissors") {
      aiScore += 1;
      return "You Loose! Scissors cut Paper";
    }
    if (playerSelection === "paper" &amp;&amp; computerSelection === "Rock") {
      playerScore += 1;
      return "You Win! Paper beats Rock";
    }
    if (playerSelection === "scissors" &amp;&amp; computerSelection === "Paper") {
      playerScore += 1;
      return "You Win! Scissors cut Paper";
    }
    if (playerSelection === "scissors" &amp;&amp; computerSelection === "Rock") {
      aiScore += 1;
      return "You Loose! Rock beats Scissors";
    } else return "U misspelled, try again";
  }
  
  function scores(aiScore, playerScore) {
    if (aiScore &gt; playerScore) {
      return "CONGRAS, AI IS SMARTER THEN YOU!";
    }
    if (playerScore &gt; aiScore) {
      return "CONGRAS, YOU ARE SMARTER THEN AI";
    }
  }
  
  for (let i = 0; i &lt; 5; i++) {
    const playerSelection = prompt(
      "Choose: Rock, Paper or Scissors",
      " "
    ).toLowerCase();
    const computerSelection = computerPlay();
    console.log("AI choose: " + computerSelection);
    console.log(battleRound(playerSelection, computerSelection));
    console.log("AI score: " + aiScore, "Player score: " + playerScore);
  }</code></pre>
  </div>
  </div>
  </p>
  <p>Please, indicate an obvious problem in the code and what exactly I need to replace.
  Much obliged for any tips!</p>