Put the smite command in a separate class and changed a little of the code