Added ENDED to checkSeek function