balls change color depending on state