def startLocationInput(repeat=False):
    if (repeat == True):
        play('voiceCommands/sorryPleaseRepeat.wav')
    else:
        play('voiceCommands/startLocationInputPrompt.wav')
    startLocation = recognizeSpeech('location')
    if isLegalNode(startLocation):
        return startLocation
    else:
        return startLocationInput(True)
def startLocationInput(repeat=False):
    if (repeat == True):
        play('voiceCommands/sorryPleaseRepeat.wav')
    else:
        play('voiceCommands/startLocationInputPrompt.wav')
    startLocation = recognizeSpeech('location')
    if isLegalNode(startLocation):
        return startLocation
    else:
        return startLocationInput(True)