Refactored printing of forward and backward snakes in separate methods