globalVariable genocide

fixed a bunch of things from transition to CurrentTrain from seperate DirectionTrain function, also made changes to reflect elimination of global variables