Added attack method, code refactoring