Chckeing  logic of the states play/resume.