wrote magic 5-gon test func