Moved SDL state into Frame; tidied resulting main().