Implemented functions to cycle in all 4 directions