new bug random movement algorithm