a medicine wheel is used to mark the astronomical events of the sun , the moon , some stars , and some planets in relation to earths horizon at a given location for celebrating important ceremonies , teachings to give thanks to the creator .