cleaned up some code in command.c

cleaned up:
* commandOpenDoor
* commandTurnDirection
* commandUnlockDoor