public Grenade doCommand(Command command) {
        Grenade grenade = null;

        if (command.getRotate() == CommandType.TURN_LEFT) {
            addToDirection(-command.getAngle());
        }
        if (command.getRotate() == CommandType.TURN_RIGHT) {
            addToDirection(command.getAngle());
        }

        if (command.getShoot() == CommandType.SHOOT) {
            if (shootTimer == 0) {
                grenade = new Grenade(this, getX(), getY(), getDirection());
                grenade.move();
                grenade.move();
                player.addShoot();
                shootTimer=GameData.SHOOT_TIMER;
            }
        }

        if (command.getMove() == CommandType.MOVE_FORWARD) {
            moveForward();
        }
        if (command.getMove() == CommandType.MOVE_BACK) {
            moveBack();
        }
        if (shootTimer > 0) {
            shootTimer--;
        }
        return grenade;
    }