negmax algorithm added