HASHI game in Python