Switch scenes after Prefab Gameobjects are placed on a platform

Hi, I'm making a game where you try to push batteries (prefab) over to a specific platform to win the level, but I'm not sure how to write a script that tells the game to switch scenes after all the batteries are on the platform. Can someone help?

Thanks :)

To switch scenes, use Application.LoadLevel.