clichess.c nearing finalization, needs debugging and testing