added attack functionality for troops
augmented attacking, fixed movement bug