move checkLine to checkLineRules and checkLineRule