How Should White Respond to Rg1 Check?

Chess Puzzle #398 | How should white move his king away from the check? Perhaps even win the game.