Added isInRange() to Command class