Hello!
i just started to learn Javascript and i tried to write a rock - paper - scissors - lizard - Spock game,
it doesn't return the right answers.
what have i done wrong? the nesting? the math.random()?

here's the code:

var userChoice = prompt("Do you choose rock, paper, scissors, lizard or spock?");
var computerChoice = Math.random();
console.log(computerChoice);
if (computerChoice < 0.20)
computerChoice = "rock";
else
if(computerChoice <= 0.40)
computerChoice = "paper";
else
if(computerChoice <= 0.60)
computerChoice = "scissors";
else
if(computerChoice <= 0.80)
computerChoise = "lizard";
else
if(computerChoice <= 1)
computerChoice = "spock";


var compare = function(choice1 , choice2){
if (choice1 == choice2)
return("The result is a tie!");

else
if (choice1 == "rock")
if (choice2 == "scissors")
return("rock wins");
else
if(choise2 == "paper")
return("paper wins");
else
if(choice2 == "lizard")
return("rock wins");
else
if(choice2 == "spock")
return ("spock wins");
else
if (choice1 == "paper")
if (choice2 == "rock")
return("paper wins");
else
if(choice2 == "scissors")
return("scissors wins");
else
if(choice2 == "lizard")
return ("lizard wins");
else
if(choice2 == "spock")
return("paper wins");
else
if (choice1 == "scissors")
if (choice2 == "rock")
return("rock wins");
else
if(choice2 == "paper")
return("scissors wins");
else
if(choice2 == "lizard")
return("scissors wins");
else
if(choice2 == "spock")
return("spock wins");
else
if (choice1 == "lizard")
if (choice2 == "rock")
return("rock wins");
else
if(choice2 == "paper")
return("lizard wins");
else
if(choice2 == "scissors")
return("scissors wins");
else
if(choice2 == "spock")
return("lizard wins");
else
if (choice1 == "spock")
if (choice2 == "rock")
return("spock wins");
else
if(choice2 == "paper")
return("paper wins");
else
if(choice2 == "lizard")
return("lizard wins");
else
if(choice2 == "scissors")
return("spock wins");
};

compare(computerChoice, userChoice);