Further optimizations. Demos now are separate. Smart snake and better NPuzzle visualization