ready for testing, implemented new method for moving through array