partial solution to longest world