loss condition - need to switch to state enum