You could make sure you finish the game before your lantern dies.
You could buy some batteries in the 'all different' maze.