After defeating Morty, he'll give you the Fog Badge, which will allow Pokemon up to lv. 50 to obey you and give you the ability to use Surf. He'll also give you TM 30 - Shadow Ball. Now head west onto Route 38.