final commit with nick's changes using arraylists to group clock hand edges