added console output and refactored code for better debugging of evaluation
merge the new AI setup for better debugging