normalizing angles using while loop in order to test whether pointing the right way