engine: Fixing bug with Playing flag