Pass lineState everywhere; prevent clicking earlier lines