Well, after beating Morty it is possible to go East to Mahogany Town. You will get Strenght, etc, and can get to Mahogany, do the Rocket bas and battle Pryce. If you do this then the guy still wont let you leave and you must go West to Olivine and do the Amphy side quest and beat Jasmine and Chuck then you will be able to leave Mahogany.