Also I was expecting my 10kOhm resistor to stop the flow of electricity. Why didn't it ?
What do you mean by stop? If 10kOhm could stop all electricity, why would higher values of resistors exist?
Resistors, slow current. They "resist" it. If they stopped current, they would be called Stopistors. (or Switches.)