initialize SDL
Rewrite with 'case' command