Added an attack function for units. It probably sucks, but whatever.