solved 12-adjacent-squares with Python