Simple paazl implementation written in Python