Further refactored.

* Starting to abstract the lines of stairs.
Step insertion.

* Added code that inserts steps to do the matching when appropiate.