refactoring Direction.cs and Labyrinth.cs

reformating the code