A hybrid differential game with switching thermostatic-type dynamics and costs