fixed the ai even more and added javadocs

if you want to get a good grasp on the ai, uncomment both
printMemory() in calculateCombination and play :)