Implemented a generic selection method.
Merge branch 'master' of https://github.com/mafagafogigante/dungeon