implemented a basic led moving functionatlity, one index at a time