Added code for basic attacking