updated robot variable to be private, updated main.js to process robot commends, updated test cases to reflect changes