added single command input and used states and switch in tick()
added equal() for arrays