added beginning of A.I using scoring mechanism