Adding get_first_code and get_last_code methods. They doesnt change internal pointer
Checking if wall has start point and end point in the same place