Refactored SDL code to its own class. Much cleaner main file