Rewrited random, added break when hp = 0 after first action, simlified "hit" function