heavily refactored hacking-game