Implementing a basic attack system