Fixed bug with reconnection

- added const file
- added api for multiple client battle
- added check if client was crashed
- added right end of game, now all theads destoy and end rightly