read player states, and added debug logging