Refactor logic for check isLineMoved