Tutorial from http://www.sdltutorials.com/sdl-collision-events converted to use SDL2 RC.