added clients different states and losing conditions