in moore machine the output depends on