Added attack and die functions