fixed an issue where the next possible moves were not properly updated when the closest neighbour was at index 0