correction of some errors in sendCommand
current state :
- detect lose if "start" has no command set
- detect win
- infinite loop if lose on grey/red case.