Refactor SDL rendering into class