Refactor, get greatest set from x, y