public void bombermanUpdate() {

        // if (player.hasWon()) {
        // if (wawCounter > 0) {
        // wawCounter--;
        // } else if (keyPoller.isAnyKeyDown()) {
        // wawCounter = WAITAFTERWIN;
        // initializeLevel("a../map/test.map");
        // initializePlayers();
        // }
        // } else if (player.isDead()) {
        // if (wawCounter > 0) {
        // wawCounter--;
        // } else if (keyPoller.isAnyKeyDown()) {
        // wawCounter = WAITAFTERWIN;
        // initializeLevel("a../map/test.map");
        // initializePlayers();
        // }
        // }

        if (accepting)
            return;

        bLevel.update();
        byte[] dir = { 0, 0 };
        // check for keyboard input from clients & update players
        for (byte i = 0; i < keyPressed.size(); i++) {
            if (keyPressed.get(i)[LEFT]) {
                dir[0]--;
            }
            if (keyPressed.get(i)[RIGHT]) {
                dir[0]++;
            }
            if (keyPressed.get(i)[UP]) {
                dir[1]--;
            }
            if (keyPressed.get(i)[DOWN]) {
                dir[1]++;
            }
            dir = players.get(i).move(dir[0], dir[1]);
            players.get(i).update();
            sendMovement(dir[0], dir[1], i);
            if (keyPressed.get(i)[ATTACK]) {
                if (players.get(i).putBomb())
                    sendBomb(i);
            }
            dir = new byte[] { 0, 0 };
        }
        if (exactPosCounter > 0) {
            exactPosCounter--;
        } else {
            exactPosCounter = EXACTPOSTIME;
            sendPlayers();
        }
        sendPowerups();
        flushPackets();
    }