Correct input
Correct process and randomize initialisation
Refactor checkWire
dorefactoril