Bad code.
You should place the contents of these two branches into the switch statement above instead, so that you don't mis-use the `Direction` variable with "special values".