Implementation of the game Hog in Python