Beta search implemented