Reach 100 points to finish the game. As you get more points, there will be more hogs. If you let the hog touch the red line then you will lose a point.
Note - Sometimes the game doesn't register when the hog hits the pong paddle and doesn't give you points. I don't know why this happens but If you can help please comment. Credits to https://www.youtube.com/watch?v=yOEOoPl8x2o for some of the code.