the toy crain uses an electromagnet to pick up and move the blocks explain how this electromagnet is able to pick up and move the block ?