Working on attack function

Nowhere near finished