added timeOut branch to trial states, which provides more compact timer functionality to each state without relying on the wait() function all the time.  Also allows easier three-way branching.