pipe opened by popen should have been closed by pclose - I should remember that. Removed all not used functionalities. Increased buffer capacitance to handle all 64 chess fields. New defines introduced to make code easy to read.