Refactor, switch-case
Merge branch 'master' of https://github.com/JGerdes/GoldMiner