Split different parts of SDL to different files