optimizing by finding all possible moves on the board once, at the beginning of the tour