Avoid/Defeat Sleeping or Awake Pirates
To avoid sleeping pirates try to avoid them by staying as out of sight as possible (Try jumping or moving slowly). To defeat the sleeping pirates easier just press B a bunch of times. When he awakes jump to avoid his attacks, the same for Awake Pirates.
Infinite Lives
Go to the wishing well in level 2 and keep on throwing your self in as needed