Also, using prompts and alerts and tons of "if" statements as you are, the game coding is going to get really ugly, really fast. Even if prompts and alerts looked good, which they don't, you need to find another way to represent the game to make the coding easier and make it easier to read and repair it when something goes wrong.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.