Moved methods to class

Class labyrinth_training created with its corresponding methods.