Fixed a bug in _score. Now works fine.