checkLine() specs and implementation added