public static boolean collision(Board board, FallingBlock fallingBlock, Action action) {
        switch (action) {
            case MOVE_LEFT:
                return checkSide(board, fallingBlock, Side.LEFT);
            case MOVE_RIGHT:
                return checkSide(board, fallingBlock, Side.RIGHT);
            case MOVE_DOWN:
                return checkDown(board, fallingBlock);
            case ROTATE_RIGHT:
                return checkRotation(board, fallingBlock, Side.RIGHT);
            case ROTATE_LEFT:
                return checkRotation(board, fallingBlock, Side.LEFT);
        }
        return false;
    }