implemented basic ranged combat (finally!)