Added comments in beer.js and duel.js and made a function more specific as well in duel.js