Try/catch for opening file and ensuring Transition.setDirection only accepts "R" or "L"