Keeping track of past moves to avoid repetition
Added CMake option to disable history