public void placeBomb() {

        //limit max bombs
        if (BombermanGame.bombs.stream().filter(bomb -> bomb.getPlacedByPlayer() == this).count() >= MAX_BOMBS) {
            return;
        }

        int bombX = x;
        int bombY = y;

        while (bombX % BOX_SIZE != 0) {
            bombX++;
        }
        while (bombY % BOX_SIZE != 0) {
            bombY++;
        }

        final int newBombPosX = bombX;
        final int newBombPosY = bombY;

        //do not overlap bombs
        if (BombermanGame.bombs.stream().anyMatch(b -> b.x == newBombPosX && b.y == newBombPosY)) {
            return;
        }

        Bomb bomb = new Bomb(newBombPosX, newBombPosY, this);
        BombermanGame.bombs.add(bomb);

    }