fixed duplicate echo bug in terminal
extracted handleInput from os; sketch of object interaction