finished judge whether has tree buttons in a line