renamed pAttack to PlayerAttack, and added some memory management