Initial SDL engine code