How do you get through the tin tower?

In the top left corner, there are stairs that you go up on and you keep battling going up until you face the elder. He will give you flash which can be used to get lugia or face red (ash ketchum)