public static float speedMultiplier(Command command, int speed) {
        float f = 0f;
        if (command == LEFT || command == DOWN || command == UP || command == RIGHT) {
            f = 1f;
        } else if (command == LEFT_UP || command == LEFT_DOWN || command == RIGHT_DOWN || command == RIGHT_UP) {
            f = 1.14f;
        } else if (command == NO_MOVE) {
            f = 1f / (float) speed;
        }
        return f * (float) speed;
    }