Added number of attacks stat and refactored combat related code.