Fixed test case 11: too many rows before EOF returns error
Fixed test case 12: EXIT_INVALID_VALUE on invalid flagstone value
All test cases passed, need to format the code prettily