simultation of node api state (colors) and receive trials