fixed infinite loop in line checker
enforce lose state (no input)