Magnet and Compass.

The idea of the using the magnet to magnatize the needles to make makeshift compass is worthy but.... The magnet may cause the real compass to be incorrect after storage.

You are better off magnetizing the needles before hand and storing them on the other end of the container away from the compass.