One basic premise that we are all tied to is that you can't get something for nothing. A battery has to be charged. Because of losses due to friction and heat losses, the usable energy stored in a battery will always be less than the energy expended to charge the battery. People used to dream up perpetual motion machines that would supposedly run forever. One such proposal was an electric motor driving a pump to pump water up to the top of the hill. The water then ran back down the hill and drove a generator that powered the electric motor to drive the pump and so on..... In that system there is a myriad of inefficiencies and losses not unlike the electro-magnetic engines mentioned earlier. The laws of thermodynamics rule, and there is no way of escaping them.