my first attempt to write a c++ program using SDL