Fixed for loops and added confirmation for some commands.
Clarified code and added win message