Java only doing 2opt