Refactor stepping_piece.rb