After the S.S. Anne is gone, go to the guard that says that the ship is gone. After facing him, keep pressing right and then quickly push the START button. Save and reset. If everything's OK, you should continue facing right. Select a Pokémon that knows SURF and use this move. Instead of surfing to the right, you'll surf ON the guard! Press down twice, and you'll enter the S.S. Anne again.