moved moveDependentDir to GameLogic