Coach of unbeaten team resigns over remarks