1)Added: else if (playerGuess < magicNumber)

2)Added: if (numberOfGuesses === 0)