Added new logic for command checking, reverse the command Map and loop through the command (max 3 words).