Back and forth movements of trains usually means the train is being switched by changing the location of certain cars within the train or into or out of different tracks in a rail yard. It also could be for the purpose of building an outbound train, or breaking up an inbound train at a classification or storage yard.