Rewritten to allow exchange data with battle server via sockets;
Added stub to imitate battle server