Completed Thue parser
Moved Thue parser into its own module