Game-theoretical optimization of differential systems