Added central squares and main diagonal checking in the evaluation
function.