Added basic attack function