Added 3rd judges state and lookahead