The seg fault is gone

changed all free(currentImage) to SDL_FreeSurface(currentImage)
and
free(font) to
TTF_CloseFont(font)

Also, the game ends kind of abruptly, but I guess there's not actually
anything wrong with that.