find the shortest way to what you want to go in BIT