Python implementation of the classical game Mayhem