Mastering the Middlegame