added error messages when initializing SDL or video fails