void AddPlayer(Socket socket)
	{
		if(players.size() >= field.getMaxPlayers())
		{
			try
			{
				socket.getOutputStream().write(6);
				socket.close();
			}
			catch(IOException localIOException)
			{
			}
		}
		byte slot;
		CellStartSlot cSlot = null;
		for(slot = 0; slot <= field.getMaxPlayers() - 1; slot = (byte) (slot + 1))
		{
			cSlot = field.ful.getSlotCell(slot);
			if(cSlot.getOwner() == null)
			{
				break;
			}
		}
		if(cSlot == null)
		{
			throw new Error("players.size = " + players.size() + " field.getMaxPlayers() = " + field.getMaxPlayers() + " no free slot was found :(");
		}

		SPlayer p = new SPlayer(slot, "player_" + slot, socket, cSlot.getX(), cSlot.getY());
		cSlot.setOwner(p);
		synchronized(players)
		{
			players.add(p);
		}
	}