bug fixes;

testing solutions for the learning mode;