Working solution for Harry Potter Kata

Solution working but needs code refactoring.