Added logic for value skill

This pull request adds all the logic needed to implement the 'value' skill, plus the appropriate unit tests.