Added conditions for melee attack to be generated

For a melee attack to be generated and feedback given the troop has to
be able to reach the position.