add eval function to work with alphabeta