now checking state change on player leave