Tests refactored
Unnecessary println removed
Cycle bug fixed
Test case (recursive grammar 3) bug fixed