changed attack method to use randomInt function to get currentWeapon