added codeval spiral printing