add relative pathing functions, choose closest square to health when attacking