separating methods in Labyrinth class