Thought of better way of line collision