cleaned up edge checking function in meteorShower.pde